#include "trailingZeroes.h"
int trailingZeroes(int n) {
    int res = 0;
    for (int i = 5; i <= n; i++) {
        int current = i;
        while (!(current % 5)) {
            res++;
            current /= 5;
        }
    }
    return res;
}
